import request from '@/utils/request';

// 获取部门精简信息列表
export function deptList() {
  return request({
    url: '/system/dept/list-all-simple',
    method: 'get',
  });
}

// 获取院区列表
export function getCampusList() {
  return request({
    url: '/system/dept/list-branch-simple',
    method: 'get',
  });
}

// 根据院区获取部门列表
export function getCampusDeptList(params) {
  return request({
    url: '/system/dept/list-branch-dept',
    method: 'get',
    params,
  });
}
